package net.comm.user.web.form;

import net.comm.page.PageCtr;

import org.apache.struts.action.*;
import org.apache.struts.upload.FormFile;


public class UserHomeForm extends ActionForm {

	private static final long serialVersionUID = 1L;
	private static final String KEY_SPLIT = "#,##,#,#,#";

	private int  	QryVillageID;			//	小区
	private String  QryCtime;			//	加入系统时间
	private String  QryFcPicIDSts;		//	房产证照片状态
	private String  QryNick;			//	用户名
	private String  QryOrderby;			//	排序字段
	
	private int  	SeqID;				//	序号ID
	private int  	UserID;				//	会员ID
	private int  	Work_location;		//	所在省份
	private int  	Work_sublocation;	//	所在城市
	private int  	Work_area;			//	所在区县
	private int  	VillageID;			//	小区
	private String  Building;			//	栋
	private String  HouseNo;			//	号
	private String  FangchanNo;			//	房产证号码
	private String  FcNoSet;			//	房产证号码隐私保护
	private int  	FcPicID;			//	房产证照片ID
	private String  FcPicIDSts;			//	房产证照片状态
	private String  InTime;			//	入住时间
	private String  InTimeSet;		//	入住时间隐私保护
	private String  FamSts;			//	家庭状况
	private String  FamStsSet;			//	家庭状况隐私保护
	private String  LiveSts;		//	居住状况
	private String  LiveStsSet;		//	居住状况隐私保护
	private String  Mtime;			//	最后修改日期
	
	private FormFile  FcPicIDPath;		//	房产证照片ID
	

	public UserHomeForm() {
		super();
		// TODO Auto-generated constructor stub
		Clear();
	}
	public void Clear() {
		
		QryVillageID = 0;
		QryCtime = "";
		QryFcPicIDSts = "";
		QryNick = "";
		QryOrderby = "";
		
		SeqID = 0;			//	序号ID
		UserID = 0;			//	会员ID
		Work_location = 0;	//	所在省份
		Work_sublocation = 0;	//	所在城市
		Work_area = 0;			//	所在区县
		VillageID = 0;			//	小区
		Building = "";			//	栋
		HouseNo = "";			//	号
		FangchanNo = "";			//	房产证号码
		FcNoSet = "";
		FcPicID = 0;			//	房产证照片ID
		FcPicIDSts = "";			//	房产证照片状态
		InTime = "";			//	入住时间
		InTimeSet = "";			//	入住时间隐私保护
		FamSts = "";			//	家庭状况
		FamStsSet = "";			//	家庭状况隐私保护
		LiveSts = "";		//	居住状况
		LiveStsSet = "";		//	居住状况隐私保护
		Mtime = "";			//	最后修改日期
		FcPicIDPath = null;		
	}

		
	private String action = "";
	
	/**
	 * 查询当前页主键值串
	 */
	private String key = "";

	/**
	 * 查询上上页主键值串
	 */
	private String lastKey = "";
	

	/**
	 * 分页控制对象
	 */
	private PageCtr page;
	



	public PageCtr getPage() {
		return page;
	}

	public void setPage(PageCtr page) {
		this.page = page;
	}
	
	/**
	 * @param key the key to set
	 */
	public void setKey(String key) {
		this.key = key;
	}

	public String getKey() {
		return key;
	}

	public void setKey(String[] array) {
		if(key != null && key.trim().length() > 0) {
			key = "";
		}
		
		StringBuffer keyBuff = new StringBuffer();
		for (int i = 0; i < array.length; i++) 
		{
			/**
			 * 防止空字符串引起的split方法异常
			 */
			if(array[i] == null || array[i].length() == 0) {
				keyBuff.append(" ");
			} else {
				keyBuff.append(array[i]);
			}
			
			keyBuff.append(KEY_SPLIT);
		}
		
		key = keyBuff.toString();		
	}
	
	/**
	 * 获取lastKey值
	 * @return
	 */
	public String[] lastKey()
	{
		if(lastKey == null || lastKey.trim().length() == 0) {
			return null;
		}
		
		return lastKey.split(KEY_SPLIT);
	}
	
	public String getLastKey() {
		return lastKey;
	}

	public void setLastKey(String lastKey) {
		this.lastKey = lastKey;
	}	

	public String getAction() {
		return action;
	}
	public void setAction(String action) {
		this.action = action;
	}

	public static String getKEY_SPLIT() {
		return KEY_SPLIT;
	}

	public static long getSerialVersionUID() {
		return serialVersionUID;
	}



	public int getUserID() {
		return UserID;
	}

	public void setUserID(int userID) {
		UserID = userID;
	}

	public int getSeqID() {
		return SeqID;
	}

	public int getWork_location() {
		return Work_location;
	}

	public int getWork_sublocation() {
		return Work_sublocation;
	}

	public int getWork_area() {
		return Work_area;
	}


	public String getBuilding() {
		return Building;
	}

	public String getHouseNo() {
		return HouseNo;
	}

	public String getFangchanNo() {
		return FangchanNo;
	}

	public int getFcPicID() {
		return FcPicID;
	}

	public String getInTime() {
		return InTime;
	}

	public String getFamSts() {
		return FamSts;
	}

	public String getLiveSts() {
		return LiveSts;
	}

	public String getMtime() {
		return Mtime;
	}

	public void setSeqID(int seqID) {
		SeqID = seqID;
	}

	public void setWork_location(int work_location) {
		Work_location = work_location;
	}

	public void setWork_sublocation(int work_sublocation) {
		Work_sublocation = work_sublocation;
	}

	public void setWork_area(int work_area) {
		Work_area = work_area;
	}

	public void setBuilding(String building) {
		Building = building;
	}

	public void setHouseNo(String houseNo) {
		HouseNo = houseNo;
	}

	public void setFangchanNo(String fangchanNo) {
		FangchanNo = fangchanNo;
	}

	public void setFcPicID(int fcPicID) {
		FcPicID = fcPicID;
	}

	public void setInTime(String inTime) {
		InTime = inTime;
	}

	public void setFamSts(String famSts) {
		FamSts = famSts;
	}

	public void setLiveSts(String liveSts) {
		LiveSts = liveSts;
	}

	public void setMtime(String mtime) {
		Mtime = mtime;
	}

	public int getVillageID() {
		return VillageID;
	}

	public void setVillageID(int villageID) {
		VillageID = villageID;
	}



	public FormFile getFcPicIDPath() {
		return FcPicIDPath;
	}
	public void setFcPicIDPath(FormFile fcPicIDPath) {
		FcPicIDPath = fcPicIDPath;
	}
	public String getFcPicIDSts() {
		return FcPicIDSts;
	}

	public String getInTimeSet() {
		return InTimeSet;
	}

	public String getFamStsSet() {
		return FamStsSet;
	}

	public String getLiveStsSet() {
		return LiveStsSet;
	}

	public void setFcPicIDSts(String fcPicIDSts) {
		FcPicIDSts = fcPicIDSts;
	}

	public void setInTimeSet(String inTimeSet) {
		InTimeSet = inTimeSet;
	}

	public void setFamStsSet(String famStsSet) {
		FamStsSet = famStsSet;
	}

	public void setLiveStsSet(String liveStsSet) {
		LiveStsSet = liveStsSet;
	}

	public int getQryVillageID() {
		return QryVillageID;
	}

	public void setQryVillageID(int qryVillageID) {
		QryVillageID = qryVillageID;
	}
	public String getQryCtime() {
		return QryCtime;
	}
	public void setQryCtime(String qryCtime) {
		QryCtime = qryCtime;
	}
	public String getQryFcPicIDSts() {
		return QryFcPicIDSts;
	}
	public void setQryFcPicIDSts(String qryFcPicIDSts) {
		QryFcPicIDSts = qryFcPicIDSts;
	}
	public String getQryNick() {
		return QryNick;
	}
	public void setQryNick(String qryNick) {
		QryNick = qryNick;
	}
	public String getQryOrderby() {
		return QryOrderby;
	}
	public void setQryOrderby(String qryOrderby) {
		QryOrderby = qryOrderby;
	}
	public String getFcNoSet() {
		return FcNoSet;
	}
	public void setFcNoSet(String fcNoSet) {
		FcNoSet = fcNoSet;
	}



	
}